/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.Drawable;
import android.view.ViewGroup.LayoutParams;
import android.widget.Button;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.RelativeLayout.LayoutParams;
import android.widget.TextView;

public final class ah extends RelativeLayout {
    private TextView a;
    private Button b;
    private ProgressBar c;

    public ah(Activity paramActivity) {
        super(paramActivity);
        setBackgroundColor(-2013265920);
        this.a = new TextView(paramActivity);
        this.a.setId(cz.a());
        this.a.setTextSize(16.0F);
        this.a.setTextColor(-1);
        (localObject1 = new RelativeLayout.LayoutParams(-2, -2)).addRule(13, -1);
        addView(this.a, (ViewGroup.LayoutParams) localObject1);
        this.c = new ProgressBar(paramActivity);
        Object localObject1 = bi.a(paramActivity);
        AnimationDrawable localAnimationDrawable = new AnimationDrawable();
        Object localObject2;
        for (int i = 1; i < 13; ++i) {
            localObject2 = ((bi) localObject1).a("loading" + i + ".png");
            localAnimationDrawable.addFrame((Drawable) localObject2, 75);
        }
        localAnimationDrawable.setOneShot(false);
        this.c.setIndeterminateDrawable(localAnimationDrawable);
        i = cz.a(paramActivity, 32.5F);
        (localObject2 = new RelativeLayout.LayoutParams(i, i)).addRule(14, -1);
        ((RelativeLayout.LayoutParams) localObject2).addRule(2, this.a.getId());
        addView(this.c, (ViewGroup.LayoutParams) localObject2);
        this.b = new Button(paramActivity);
        this.b.setTextColor(-13421773);
        this.b.setTextSize(16.0F);
        this.b.setText(a.a(b.n));
        this.b.setVisibility(8);
        ((bi) localObject1).a(this.b, "bg_coverbtn_nor.png", "bg_coverbtn_press.png", "bg_coverbtn_nor.png");
        (localObject1 = new RelativeLayout.LayoutParams(cz.a(paramActivity, 105.5F), cz.a(paramActivity, 39.5F)))
                .addRule(14, -1);
        ((RelativeLayout.LayoutParams) localObject1).addRule(3, this.a.getId());
        ((RelativeLayout.LayoutParams) localObject1).topMargin = cz.a(paramActivity, 20.0F);
        addView(this.b, (ViewGroup.LayoutParams) localObject1);
    }

    public final void a(String paramString) {
        this.a.setText(paramString);
    }
}